<?php


namespace App\Transformer;


use App\Models\CustomerRecordsFile;
use Illuminate\Support\Facades\Storage;
use League\Fractal\TransformerAbstract;

class CustomerRecordsFileTransformer extends TransformerAbstract
{

    public function transform(CustomerRecordsFile $data)
    {
        $disk = Storage::disk('oss');
        return [
            'path' => $disk->url($data->path),
        ];
    }

}
